package com.dlc.shop.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * es自定义变量配置文件
 * @author gaozijie
 * @since 2024-03-18
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.elasticsearch")
public class EsProperties {

    /**
     * 是否开启es，不开启则从数据库中查询数据
     */
    private Boolean enable;
}
